//
// Created by liuzhen on 8/8/18.
//
#include <stdbool.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MPxCommand.h>
#include <maya/MGlobal.h>
#include <maya/MDGModifier.h>
#include <maya/MSelectionList.h>
#include <maya/MDagPath.h>
#include <maya/MFnTransform.h>
#include <maya/MItSelectionList.h>
#include <maya/MPlug.h>
#include <maya/MObjectArray.h>

class firstNodeCmd : public MPxCommand
{
public:
    firstNodeCmd(){}
    virtual ~firstNodeCmd(){}

    virtual MStatus doIt( const MArgList& args );
    virtual MStatus redoIt();
    virtual MStatus undoIt();
    virtual bool isUndoable() const { return true; }
    static void* creator(){return new firstNodeCmd();}

private:
    MDGModifier mod;
    MObjectArray myNodeArray;

};